//
//  LoginNextViewController.m
//  A_program
//
//  Created by dlios on 15-5-30.
//  Copyright (c) 2015年 BayMax. All rights reserved.
//

#import "LoginNextViewController.h"
#import "LoginFirView.h"

@interface LoginNextViewController ()
@property (nonatomic, retain) LoginFirView *login;
@end

@implementation LoginNextViewController
- (void)dealloc
{
    [super dealloc];
}
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}
- (void)loadView{
    [super loadView];
    self.navigationItem.title = @"登录";
    [self createView];

}

- (void)createView
{
    UIButton *loginButton = [[UIButton alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 50, (self.view.frame.size.height  - 128)/ 2 - 100, 100, 100)];
    [loginButton setImage:[UIImage imageNamed:@"55.jpg"] forState:UIControlStateNormal];
    [self.view addSubview:loginButton];
    [loginButton release];
    [loginButton addTarget:self action:@selector(loginNextAction:) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *message = [[UILabel alloc] initWithFrame:CGRectMake(20, loginButton.frame.origin.y + 100, self.view.frame.size.width - 40, 50)];
    message.text = @"亲爱的用户,请点击上面的微博图标,使用新浪微博账号登录。";
    message.numberOfLines = 0;
    message.font = [UIFont systemFontOfSize:14];
    message.textColor = [UIColor blueColor];
    [self.view addSubview:message];
    [message release];
    
}


- (void)loginNextAction:(id)sender{
    [self createLoginWeb];
}
//跳转weibo
- (void)createLoginWeb{
       
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
